package com.projet.activities.listeners;

import com.projet.activities.LabyrinthActivity;

import android.app.Activity;
import android.content.Intent;
import android.view.View;

public class ListenerNiveau extends Listener {

	private String _file;
	final String EXTRA_FICHIER_NIVEAU = "fichier_niveau";

	public ListenerNiveau(Activity a, String file)
	{
		super(a);
		_file = file;
	}


	@Override
	public void onClick(View v) 
	{
		Intent intent = new Intent(_activity, LabyrinthActivity.class);
		intent.putExtra(EXTRA_FICHIER_NIVEAU, _file);
		_activity.startActivity(intent);
	}
}
